// axios
import request from '@/utils/request'
import qs from 'qs';

// 上传图片
export function uploadFiles(data) {
    return request({
      url: '/task/index/uploadPhoto',
      method: 'post',
      data,
    })
}

// 根据字典类型查询字典数据信息
export function getDicts(linkurl) {
    return request({
      url: linkurl,
      method: 'get'
    })
}


// 获取城市
export function getCitys(params) {
    return request({
      url: '/task/index/city',
      method: 'get',
      params
    })
  }
  
  
  //获取区域
  export function getRegions(params) {
    return request({
      url: '/task/index/area',
      method: 'get',
      params
    })
  }